﻿@using Jhong.FunMVC.Razor.Test
@using Jhong.FunMVC.Razor
@using Jhong.FunMVC
@using Jhong.FunMVC
@using Jhong.FunMVC

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <charset ="utf-8" />
    <title></title>
</head>
<body>
    <div>
        @ViewData["v1"]   ，，看到View了,现在的时间是：@DateTime.Now.ToShortTimeString()
        <br />
        当前时间：@DateTime.Now.ToString();
        <br />
        时间戳:@DateTime.Now.ToUnixTime().ToString();
        <br />
        @RazorHTMLHelper.HTML.CheckBox("ck", true, new { @class = "myclass", style = "color:red" })

        @RazorHTMLHelper.HTML.Hidden("hid", "myvalue")

        @RazorHTMLHelper.HTML.Password("mypwd", "abc")
        <br />
        @RazorHTMLHelper.HTML.RadioButton("myrb", "m", false)
        @RazorHTMLHelper.HTML.RadioButton("myrb", "n", true)
        @RazorHTMLHelper.HTML.TextBox("mytext", "abc", new { style = "color:red" })

        @{
            var selectList = new List<SelectListItem>();
            selectList.Add(new SelectListItem() { Text = "阿波罗", Value = "Sunny" });
            selectList.Add(new SelectListItem() { Text = "面神", Value = "晚安" });
            selectList.Add(new SelectListItem() { Text = "托尔", Value = "闪电", Selected = true });
            selectList.Add(new SelectListItem() { Text = "云神", Value = "cloud" });
        }
        @RazorHTMLHelper.HTML.DropDownList("dd", selectList, new { style = "color:blue" })
    </div>
</body>
</html>
